package com.youngjun.common.security.service.impl;

import com.youngjun.common.security.exception.CustomAuthenticationException;
import com.youngjun.common.security.service.UserDetailsService;
import org.springframework.security.core.userdetails.UserDetails;

public class DefaultUserDetailsServiceImpl implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String username){
        throw new CustomAuthenticationException("用户名或密码错误");
    }

    @Override
    public String loadCertificateByUsername(String username) {
        return null;
    }
}
